import React from 'react';
import { Text, StyleSheet, TouchableOpacity } from 'react-native';
import * as RNLocalize from 'react-native-localize';

const App = () => {
    return (
        <TouchableOpacity style={{
            width: 30,
            height: 30,
            borderRadius: 15,
            marginRight: 10,
            flexDirection: 'row',
            alignItems: 'center',
            justifyContent: 'space-around',
            paddingHorizontal: 5
        }}
            onPress={() => {
                switchLanguage()
            }}>
            <Text style={{
                color: '#333',
                fontWeight: 'bold',
                fontSize: 16
            }}>
                {RNLocalize.getLocales()[0].languageCode}
            </Text>
        </TouchableOpacity>
    )
};

const styles = StyleSheet.create({
});

export default App;
